import React from 'react';
import { BrowserRouter as Router, Routes, Route, useRoutes, createBrowserRouter, Navigate } from 'react-router-dom';
import Home from '../components/Home';
import About from '../components/About';
const router = createBrowserRouter([
    {
        path: "/",
        element: <Navigate to={'/home'} />
    },
    {
        path: "/home",
        element: <Home />,
    },
    {
        path: "/about",
        element: <About />
    }
]);

export default router;